#!/usr/bin/env node

const Radio=require('./03-radio');
const log=console.log;

const station={
    freq:'100.8',
    name:'music radio'
}

let radio=new Radio(station);

radio.on('play',(station)=>{
    log('%s  FM  %s  opened',station.name,station.freq)
    log('lalala...')
})

radio.on('stop',(station)=>{
    log('%s  FM  %s  closed',station.name,station.freq)
})